package com.tgy.twoDatabase;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;


/**
 * 取消自带的数据库管理，使得两个数据库的配置得以生效
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@MapperScan(basePackages = "com.tgy.twoDatabase.dao.master")
//@MapperScan(basePackages = "com.tgy.twoDatabase.dao.logDB")

@EnableAsync
public class TwoDataBaseApplication {

    public static void main(String[] args) {
        SpringApplication.run(TwoDataBaseApplication.class, args);
    }



}
